// file:api.js
// 1、导入axios以及拦截器
import service from '../../request'

// 2、定义登录函数接口
export const findBaseCatgoryDTOTree = () => {
    return service({
        url: `api/admin/product/baseCategory/findBaseCatgoryDTOTree`,
        method: 'get'
    })
};


export const getCategory1 = () => {
    return service({
        url: `api/admin/product/baseCategory/getCategory1`,
        method: 'get'
    })
};


export const getCategory2 = (category1Id) => {
    return service({
        url: `api/admin/product/baseCategory/getCategory2/${category1Id}`,
        method: 'get'
    })
};

export const getCategory3 = (category2Id) => {
    return service({
        url: `api/admin/product/baseCategory/getCategory3/${category2Id}`,
        method: 'get'
    })
};